<form action='{:url("save")}' method="post" data-auto="true" class="layui-form layui-card" data-table-id="ParkingTable">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item relative block">
            <span class="help-label"><b>车牌号</b></span>
            <input maxlength="255" class="layui-input" name="plate_number" value="{$vo.plate_number|default='吉A'}" required placeholder="请输入车牌号">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>免费时长</b></span>
            <input type="number" min="0" class="layui-input" name="free_hours" value="{$vo.free_hours|default=0}">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>是否离场</b></span>
            <input type="radio" name="is_exited" value="2" title="已离场" {if condition="isset($vo) && $vo.is_exited == 2"}checked{/if}>
            <input type="radio" name="is_exited" value="1" title="在场" {if condition="!isset($vo) || $vo.is_exited == 1"}checked{/if}>
        </label>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
